﻿using Ibp.Service.Entity.ODAEntity;
using Teigha.Core;

namespace OdaOperation.Extends
{
    public static class PointExtend
    {
        /// <summary>
        /// 将 DPoint 对象转换为 OdGePoint3d 对象
        /// </summary>
        /// <param name="point">要转换的 DPoint 对象</param>
        /// <returns>转换后的 OdGePoint3d 对象</returns>
        public static OdGePoint3d ToGePoint3D(this DPoint point)
        {
            // 创建并返回一个新的 OdGePoint3d 对象，使用 DPoint 的 X, Y 和 Z 值
            return new OdGePoint3d(point.X, point.Y, point.Z);
        }
    }

}